@layout("/common/_container.html"){
<link rel="stylesheet" type="text/css" href="${ctxPath}/static/css/plugins/steps/jquery.steps.css"/>
<link rel="stylesheet" type="text/css" href="${ctxPath}/static/plugin/gooflow/GooFlow.css"/>
<style>
    .wizard > .content{
        height: 700px;
    }
    .wizard, .tabcontrol {
        display: block;
        width: 100%;
        overflow: visible;
    }
    .other_bar{
        margin-bottom: 20px;
    }
</style>
<svg hidden="true">
    <defs >
        <!--<marker id="arrow1" viewBox="0 0 6 6" refX="5" refY="3" markerUnits="strokeWidth" markerWidth="6" markerHeight="6" orient="auto"><path d="M 0 0 L 6 3 L 0 6 z" fill="#1D8CE0" stroke-width="0"></path></marker>-->
    </defs>
</svg>

<div>
    <input type="hidden" id="accidentTypeId" value="${item.accidentTypeId}">
    <input type="hidden" id="accidentLevel" value="${item.accidentLevel}">
    <input type="hidden" id="emergencyId" value="${item.emergencyId}">
    <input type="hidden" id="lineId" value="${item.lineId}">
    <input type="hidden" id="startTime1" value="${item.startTime1}">
    <input type="hidden" id="emergencyproId" value="${item.emergencyproId}">
    <input type="hidden" id="stationId" value="${item.stationId}">
    <input type="hidden" id="trainNumber" value="${item.trainNumber}">
    <input type="hidden" id="trapNum" value = "${item.trapNum}">
    <input type="hidden" id="currentIndex" value="${currentIndex}">
    <input type="hidden" id="counterplanId" value="${item.counterplanId}">
    <input type="hidden" id="counterplanType" value="${item.counterplanType}">
    <input type="hidden" id="step" value="${item.step}">
    <input type="hidden" id="reduction" value="${item.reduction}">
</div>



<!--</div>-->

<div id="wizard">
    <h1>接警</h1>
    <fieldset>
        <div clasloat-e-margins>

            <div class="ibox-content">
                <div id="accident_info" >
                    <p calss="p" style="font-size:16px">当前时间：<span id="Time"></span></p>
                    <p style="font-weight: bold;color: black;font-size: 20px">事故情况</p>
                    <p calss="p" style="font-size:16px;height: 28px">&emsp;&emsp;事故类型：<span style="width: 240px;display:inline-block">${item.accidentTypeName}</span>事故响应等级：<span style="width: 240px;display:inline-block">${item.accidentLevelName}</span>突发事件类型：<span style="width: 240px;display:inline-block">${item.emergencyName}</span></p>
                    <p calss="p" style="font-size:16px;height: 28px">&emsp;&emsp;事故线路：<span style="width: 240px;display:inline-block">${item.lineName}</span>事故发生时间：<span style="width: 240px;display:inline-block">${item.startTime1}</span>突发事件属性：<span style="width: 90px;display:inline-block">${item.emergencyproId}</span></p>
                    <p calss="p" style="font-size:16px;height: 28px">&emsp;&emsp;事故地点：<span style="width: 240px;display:inline-block">${item.stationName}</span>事故发生车次：<span style="width: 240px;display:inline-block">${item.trainNumber}</span>&emsp;&emsp;影响范围：${item.trapNum}</p>

                </div>
            </div>
            <div class="ibox-content">
                <div class="form-horizontal" id="accidentInfoForm">
                    <div class="row">
                        <div class="col-sm-6 b-r">
                            <p style="font-weight: bold;color: black;font-size: 20px">现场情况</p>
                            <#selectDict id="interruptionType" name="中断类型" code="interruption_type" value="${item.interruptionType}"
                                    underline="true"/>
                            <#input id="retentionTime"  name="乘客滞留时间（分钟)" value="${item.retentionTime}"   underline="true"/>
                            <#input id="interruptionTime" name="预计中断时间(分钟)" value="${item.interruptionTime}" underline="true"/>
                            <#input id="expectDelays" name="预计晚点时间(分钟)" value="${item.expectDelays}" underline="true"/>
                            <!--<#input id="reduction" name="预计行车能力降低(%)" underline="false" underline="true" value = "${item.reduction}"/>-->

                            <div class="form-group">
                                <label class="col-sm-3 control-label">客流损失系数</label>
                                <div class="col-sm-4">
                                    <input id="lossEfficiencyRetention" type="text" class="form-control" placeholder="滞留客流默认75(%)" value="${item.lossEfficiencyRetention}">
                                </div>
                                <div class="col-sm-1">
                                </div>
                                <div class="col-sm-4">
                                    <input id="lossEfficiencyRransportation" type="text" class="form-control" placeholder="疏运客流默认85(%)" value="${item.lossEfficiencyRransportation}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                        <div class="col-sm-6">
                            <p style="font-weight: bold;color: black;font-size: 20px">处置情况</p>
                            <p style="font-weight: bold;font-size: 15px;display:inline;">&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;启动公交应急联动&emsp;</p>
                            <button  type="button" style="display:inline;" class="btn btn-info" onclick="AlarmInfoDlg.submitAccidentBus()">启动</button>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">调度方式</label>
                                <div class="col-sm-3">
                                    <select class="form-control" id="schedulingMode" name="schedulingMode">
                                        <option value="">请选择</option>
                                        <option value="1">单线双向行车</option>
                                        <option value="2">小交路运行</option>
                                    </select>
                                </div>
                                <label class="col-sm-3 control-label">行车间隔(分钟)</label>
                                <div class="col-sm-3">
                                    <input class="form-control" id="schedulingModeMin" name="schedulingModeMin" type="text">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                            <label class="col-sm-3 control-label">汇报上级</label>

                            <div class="col-sm-2">
                                <button  type="button" class="btn btn-info" onclick="AccidentInfoDlg.report()">选择上级</button>
                            </div>

                        </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">通知下级</label>

                                <div class="col-sm-2">
                                    <button  type="button" class="btn btn-info" onclick="AccidentInfoDlg.report()">选择下级</button>
                                </div>

                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">接警完成</label>
                                <div class="col-sm-2">
                                    <button id="jiejing"  type="button" class="btn btn-info" onclick="AlarmInfoDlg.submitAccident()">接警信息提交</button>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>

                        </div>
                    </div>
                </div>
            </div>
    </div>
    </fieldset>
    <h1>处警</h1>
    <fieldset>
        <div class="row">
            <div class="form-group">
                <div class="col-sm-9">
                <p calss="p" style="font-size:16px">当前时间：<span id="Time1" style="width: 300px;display:inline-block"></span>乘客滞留时间：<span id="retentionTime1">"${item.retentionTime}"</span>分钟</p>
                </div>
                <div class="col-sm-3">
                <button id="chujing"  type="button" class="btn btn-info" onclick="AlarmInfoDlg.submitAccidentTwo()">处警提交</button>
                </div>
            </div>

            <#table id="AccidentCounterplanSelTable"/>
        </div>
    </fieldset>
    <h1>编辑处置流程</h1>
    <fieldset>
        <div class="ibox float-e-margins">
         <div id="processEdit" style="width: 100%;height:500px;"></div>
        </div>
        <div >
            <button id="editorFlow" type="button" class="btn btn-info" onclick="AlarmInfoDlg.submitAccidentThree()">处置流程提交</button>
        </div>
    </fieldset>
    <h1>进入处置阶段</h1>
    <fieldset>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-8 b-r">
                        <div id="processExe" style="width:100%;height:500px;"></div>
                    </div>
                    <div class="col-sm-4">
                        <textarea id="report" class="form-control" rows="26"  readonly ></textarea>
                    </div>
                    <input id="disposition_step_txt" type="hidden" value="${item.dispositionStepTxt}">
                    <input id="disposition_step" type="hidden" value="${item.dispositionStep}">
                    <input id="accidentId" type="hidden" value="${item.accidentId}">
                </div>
            </div>
        </div>
        <div >
            <button id="accidentReport" type="button" class="btn btn-info" onclick="AccidentInfoDlg.accidentReportExport()" disabled="true">处置报告</button>
            <button id="finish" type="button" class="btn btn-info" onclick="AccidentInfoDlg.addSubmit()">完成</button>
        </div>
    </fieldset>
</div>

<script type="text/javascript" src="${ctxPath}/static/plugin/gooflow/GooFlow.js"></script>
<script src="${ctxPath}/static/js/plugins/staps/jquery.steps.min.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/accident_info.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/accident_counterplan_sel.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/process_edit.js"></script>
<script src="${ctxPath}/static/modular/yjya/accident/process_execute.js"></script>
<script src="${ctxPath}/static/modular/yjya/alarm/alarm_info.js"></script>
@}